﻿using YunSpace.Application.Messaging.Sender;

namespace YunSpace.Application.Messaging
{
    public class MessageSenderFactory
    {
        public static MessageSender GetMessageSender(MessageSenderType senderType)
        {
            switch (senderType)
            {
                case MessageSenderType.Sms:
                    return new SmsSender();
                case MessageSenderType.Email:
                    return new EmailSender();
                case MessageSenderType.Site:
                    return new SiteSender();
                case MessageSenderType.None:
                    return new NullSender();
                default:
                    return new NullSender();
            }
        }
    }
}
